#include <stdio.h>
 
int main()
{
    int t1 , t2 , nextTerm , number , n=1 ;
    printf("please enter two number you long to at the beginning:\n");
    scanf("%d %d",&t1,&t2);
    printf("please enter the number of series you want: \n");
    scanf("%d", &number);
    int F();
    
    printf("The Fibonacci series is: %d, %d, ", t1, t2);
    
    nextTerm=t1+t2;
    
    printf("%d,",F(t1,t2,nextTerm,n,number));
    
    return 0;
}
int F(int t1,int t2,int nextTerm,int n,int number)
{
    if (n < number-1)
        printf("%d, ",nextTerm);
        t1 = t2;
        t2 = nextTerm;
        nextTerm = t1 + t2;
        n=++n;
        return(F(t1,t2,nextTerm,n,number));
    
}